package cn.stylefeng.guns.modular.business.common;

import lombok.Data;

/**
 * @author zhangf
 */
@Data
public class TokenSingleton {

    /**
     * 微信 Token
     */
    private String weixinToken;


    /**
     * 构造方法
     */
    private TokenSingleton() {
    }

    /**
     * 获取 TokenSingleton
     *
     * @return TokenSingleton
     */
    public static TokenSingleton getTokenSingleton() {
        return TokenSingletonHolder.tokenSingleton;
    }

    public String getWeixinToken() {
        return weixinToken;
    }

    public void setWeixinToken(String weixinToken) {
        this.weixinToken = weixinToken;
    }

    private static class TokenSingletonHolder {
        private static TokenSingleton tokenSingleton = new TokenSingleton();
    }
}
